package sctu.edu.java.year2016.team01.renxinpeng.day20160524.chapter7_3;

/**
 * Created by Zero on 2016/5/24.
 * 根据运行参数的个数决定循环打印变量i值的次数。
 */
import java.util.Scanner;
public class Chapter7_3 {



    static void Study(){

        System.out.println("好好学习！");
    }


    public static void main(String[] args){



        System.out.println("请输入打印次数：");
        Scanner scan=new Scanner(System.in);
        int x=scan.nextInt();


        for(int i=0;i<x;i++){

            Study();

        }

    }


}


